from flask import Flask,request

app = Flask(__name__)

@app.route('/',methods=['POST'])
def index():

    #方式一
    # uname = request.form.get('uname')
    # pwd = request.form.get('pwd')

    #方式二
    uname = request.values.get('uname')
    pwd = request.values.get('pwd')

    return f'Hello World==={uname}==={pwd}'

if __name__ == '__main__':
    #启动web应用服务
    app.run(debug=True)